#include <iostream>

using namespace std;

int main()
{
    double num;
    cin >> num;
    int ans = num;
    if (num >= ans + 0.5)
    {
        ans += 1;
    }
    cout << ans;
    return 0;
}